package com.poorstu.dao;

import java.util.List;

import com.common.base.dao.BaseDao;
import com.common.base.model.PaginationSupport;
import com.poorstu.model.PowerMod;
import com.poorstu.model.RoleMod;

public interface RoleDao extends BaseDao{
	
	public boolean newRole(RoleMod role);
	
	public boolean delRole(RoleMod role);
	
	public boolean delRoleList(List<RoleMod> roleList);
	
	public boolean updateRole(RoleMod role);
	
	public RoleMod getRole(int id);
	
	public PaginationSupport getRoleByPage(String where,String orderField, String order,final Integer startIndex,final Integer pageSize);
	
	public List<RoleMod> selectRoleAll();
	
	/**
	 * 获得全部权限
	 * @return
	 */
	public List<PowerMod> getPowerAll();
	
	
	
	
}
